/* ========================================
 *
 * Copyright YOUR COMPANY, THE YEAR
 * All Rights Reserved
 * UNPUBLISHED, LICENSED SOFTWARE.
 *
 * CONFIDENTIAL AND PROPRIETARY INFORMATION
 * WHICH IS THE PROPERTY OF your company.
 *
 * ========================================
*/
#include <cytypes.h>
#include <stdbool.h>

/*****************************************************************************
* Function Name: Audio_ADPCM_Encode()
******************************************************************************
* Summary:
* This functions is used to encode audio data using ADPCM compression
*
* Parameters:
* audioSample - Audio sample data read through I2S component
*
* Return:
* None
*
* Theory:
* The ADPCM algorithm takes advantage of the high correlation between 
* consecutive speech samples, which enables future sample values to be 
* predicted. Instead of encoding the speech sample, ADPCM encodes the 
* difference between a predicted sample and the speech sample. This 
* method provides more efficient compression with a reduction in the 
* number of bits per sample, yet preserves the overall quality of the 
* speech signal.
*
* Side Effects:
* Updates the buffer with the compressed data. Updates the 
* 
* Note:
* None
*****************************************************************************/
void Audio_ADPCM_Encode(uint16 audioSample);



/* [] END OF FILE */